<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="../resources/css/default.css" rel="stylesheet" type="text/css" />
        <link href="../resources/css/cssLayout.css" rel="stylesheet" type="text/css" />
        <link href="../stylesheet/default.css" rel="stylesheet" type="text/css" />
        <title>Facelets Template</title>
    </h:head>

    <h:body>

        <div id="top">
            <ui:insert name="top"><img src="../images/topbanner.png"/></ui:insert>
        </div>
        <div>
            <div id="left">
                <ui:insert name="left">
                    <h:form>
                    <p:menu type="tiered" style="width:160px">   
                        <p:submenu label="Sale Lead" icon="ui-icon ui-icon-newwin">  
                            <p:menuitem value="Home" url="indexSaleLead.xhtml" /> 
                            <p:menuitem value="View Sale Leads" url="viewAllSaleLeads.xhtml" /> 
                            <p:menuitem value="Add Sale Lead" url="addNewSaleLead.xhtml" />  
                        </p:submenu>  
                        <p:submenu label="Sale Inquiry" icon="ui-icon ui-icon-newwin">
                            <p:menuitem value="Home" url="indexSaleLead.xhtml"/>
                            <p:menuitem value="Add Sale Inquiry" url="addSaleInquiry.xhtml"/>
                            <p:menuitem value="View Sale Inquiry" url="viewSaleInquiry.xhtml"/> 
                        </p:submenu>
                        <p:submenu label="Sale Quotation" icon="ui-icon ui-icon-newwin">
                            <p:menuitem value="Home" url="indexSaleLead.xhtml"/>
                            <p:menuitem value="Add Sale Quotation" url="addSaleQuotation.xhtml"/>
                            <p:menuitem value="View Sale Quotation" url="viewSaleQuotation.xhtml"/> 
                        </p:submenu>
                        <p:submenu label="Purchase Order Menu" icon="ui-icon ui-icon-newwin">  
                            <p:menuitem value="Add a Purchase Order" url="addPOWoSaleLead.xhtml" /> 
                            <p:menuitem value="View All Purchase Orders" url="viewListPurchaseOrders.xhtml" /> 
                        </p:submenu>
                        <p:menuitem value="Log Out" actionListener="#{controller.logOut()}" icon="ui-icon ui-icon-close" /> 
                    </p:menu>   
                    </h:form>
                </ui:insert>
            </div>
            
            <div id="content" class="left_content">
                <ui:insert name="content">
                    Please insert content here!
                </ui:insert>
            </div>
            <div style="clear: both;">&nbsp;</div>
        </div>
        <div id="bottom">
            <ui:insert name="bottom">
                <p class="copyright">Copyright © 2011 Merlion Food Limited. All rights reserved.</p>   
            </ui:insert>
        </div>

    </h:body>

</html>
